package com.fastjars.business.freemarker;

import com.fastjars.business.freemarker.shiro.ShiroTags;
import freemarker.template.TemplateException;

import java.io.IOException;

/**
 * FreeMarkerConfigurer
 *
 * @author Brant Liu <br> 邮箱：<br>lbf1988@qq.com <br>日期：<br>2018/04/09
 * @version 1.0.0
 */
public class FreeMarkerConfigurer extends org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer{
    @Override
    public void afterPropertiesSet() throws IOException, TemplateException {
        super.afterPropertiesSet();
        this.getConfiguration().setSharedVariable(ShiroTags.TAGS_NAME, new ShiroTags());
    }
}
